* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5em;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #4ecdc4;
    color: white;
}

.btn-secondary:hover {
    background: #45b7aa;
    transform: translateY(-2px);
}

.turn-counter {
    font-size: 1.2em;
    font-weight: bold;
}

main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    height: calc(100vh - 150px);
}

.map-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.us-map {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    height: calc(100% - 60px);
    overflow-y: auto;
}

.state {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.state:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.state.active {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.state-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.state-troops {
    font-size: 12px;
    color: #ffd93d;
}

.state-territories {
    font-size: 11px;
    color: #6bcf7f;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logs-container, .state-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.logs {
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

.log-entry {
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border-left: 3px solid #ff6b6b;
}

.log-entry.war {
    border-left-color: #ff6b6b;
}

.log-entry.peace {
    border-left-color: #4ecdc4;
}

.log-entry.alliance {
    border-left-color: #ffd93d;
}

.state-details {
    font-size: 14px;
}

.state-details h4 {
    margin: 10px 0 5px 0;
    color: #ffd93d;
}

.state-details ul {
    list-style: none;
    padding-left: 10px;
}

.state-details li {
    padding: 3px 0;
    font-size: 13px;
}

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }
    
    .us-map {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .us-map {
        grid-template-columns: repeat(3, 1fr);
    }
}
